<div *ngIf="user">
    <div id="showPhoto" class="containor1" style="margin-top:10px;margin-left:40px;" >
        <h3>
          用户头像
        </h3>
        <img src="../../assets/img/head.png" alt="/" style="width:150px;height: 150px;">
        <br>
        <button class="k" id="difficult">修改头像</button>
       </div>
  <label class="ym"> 用户Id：</label>{{user.id}}
  <label class="ym"> 姓名：</label> {{user.name}}
  <label class="ym"> 电话号码：   </label> {{user.phonenum}}
  <label class="ym"> 身份证号码：  </label> {{user.idnumber}}
  <br>
  <label class="ym"> 邮箱：    </label> {{user.email}}
  <label class="ym"> 性别：  </label> {{user.age}}
  <label class="ym"> 年龄：  </label> {{user.sex}}
  <label class="ym"> 权限：   </label> {{user.power}}
  <label class="ym"> 余额：  </label> {{user.money}}
  <button class="chongzhi"><a href="https://www.alipay.com/">充值</a></button>
  <button  (click)="modify()">查看修改帮助</button>
  <div class = "items" id="modified">
    <label>姓名:</label>
    <input [(ngModel)]="user.name" placeholder="姓名" />
    <br>
    <label>电话号码:</label>
    <input [(ngModel)]="user.phonenum" placeholder="手机" />
    <br>
    <label>身份证号码:</label>
    <input [(ngModel)]="user.idnumber" placeholder="身份证号码" />
    <br>
    <label>邮箱:</label>
    <input [(ngModel)]="user.email" placeholder="邮箱" />
    <br>
    <label>性别:</label>
    <input [(ngModel)]="user.sex" placeholder="性别" />
    <br>
    <label>年龄:</label>
    <input [(ngModel)]="user.age" placeholder="年龄" />

  </div>
  <button class="save" (click)="save()">保存</button>
  <button (click)="goBack()">返回</button>
</div>

